package com.scc.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

//websocket聊天通信的配置类
@Configuration
public class WebsocketConfig {
    @Bean
    //注入ServerEndPointExporter,自动注册使用注解@ServerEndpoint
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }
}
